/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package koncowka;

import java.util.Date;


/**
 *
 * @author root
 */
public class Klient {

    private String MAC;
    private Date firstSeen;
    private Date lastSeen;
    private Integer power;
    
    private String apBSSID;

    public Klient(String MAC, Date firstSeen, Date lastSeen, Integer power, String apBSSID) {
        this.MAC = MAC;
        this.firstSeen = firstSeen;
        this.lastSeen = lastSeen;
        this.power = power;
        this.apBSSID = apBSSID;
    }

    public Klient() {
    }
    

    public String getApBSSID() {
        return apBSSID;
    }

    public Date getFirstSeen() {
        return firstSeen;
    }

    public Date getLastSeen() {
        return lastSeen;
    }

    public String getMAC() {
        return MAC;
    }

    public Integer getPower() {
        return power;
    }

    public void setApBSSID(String apBSSID) {
        this.apBSSID = apBSSID;
    }

    public void setFirstSeen(Date firstSeen) {
        this.firstSeen = firstSeen;
    }

    public void setLastSeen(Date lastSeen) {
        this.lastSeen = lastSeen;
    }

    public void setMAC(String MAC) {
        this.MAC = MAC;
    }

    public void setPower(Integer power) {
        this.power = power;
    }
    
    
    

    @Override
    public boolean equals(Object o) {
        if(o instanceof Klient)
        {
            return ((Klient)o).MAC.equals(this.MAC);
                        
        }else
            return false;
    }

    void update(Klient kl) {
        this.firstSeen=kl.getFirstSeen();
        this.lastSeen=kl.getLastSeen();
        this.power = kl.getPower();
        this.apBSSID = kl.getApBSSID();
    }

    @Override
    public String toString() {
        return this.MAC;
    }
    
    
    
}
